package com.chance.cc.crawler.prod.command.schedule.news.sina;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.sina.module.*;
import com.chance.cc.crawler.prod.command.schedule.CommonCrawlerJobSchedule;


public class SinaCommonCrawlerJobSchedule extends CommonCrawlerJobSchedule {


    public static void main(String[] args) {
//        republishCrawlerScheduleJob(SinaSportRealtimeCrawlerSchedulerJob.crawlerSchedulejob());
//        republishCrawlerScheduleJob(SinaSportTraceCrawlerSchedulerJob.crawlerSchedulejob());
        republishCrawlerScheduleJob(SinaSportTraceTraceCrawlerSchedulerJob.crawlerSchedulejob());
//        republishCrawlerScheduleJob(SinaSportSimpleCrawlerSchedulerJob.crawlerSchedulejob());

//        republishCrawlerScheduleJob(SinaMpRealtimeCrawlerSchedulerJob.crawlerSchedulejob());
//        republishCrawlerScheduleJob(SinaMpTraceCrawlerSchedulerJob.crawlerSchedulejob());

//        republishCrawlerScheduleJob(SinaAutoRealtimeCrawlerSchedulerJob.crawlerSchedulejob());
//        republishCrawlerScheduleJob(SinaAutoTraceCrawlerSchedulerJob.crawlerSchedulejob());

//        republishCrawlerScheduleJob(SinaEstationRealtimeCrawlerSchedulerJob.crawlerSchedulejob());
//        republishCrawlerScheduleJob(SinaEstationTraceCrawlerSchedulerJob.crawlerSchedulejob());


//        republishCrawlerScheduleJob(SinaSearchKwTraceCrawlerSchedulerJob.crawlerSchedulejob());
//        republishCrawlerScheduleJob(SinaCjSearchKwTraceCrawlerSchedulerJob.crawlerSchedulejob());

//        delteJob();
    }

    public static void republishCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_10);
    }

    public static void delteCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_10);
    }

    public static void delteJob(){
//        delteCrawlerScheduleJob(SinaSportRealtimeCrawlerSchedulerJob.crawlerSchedulejob());
//        delteCrawlerScheduleJob(SinaSportTraceCrawlerSchedulerJob.crawlerSchedulejob());
        delteCrawlerScheduleJob(SinaSportTraceTraceCrawlerSchedulerJob.crawlerSchedulejob());

//        delteCrawlerScheduleJob(SinaMpRealtimeCrawlerSchedulerJob.crawlerSchedulejob());
//        delteCrawlerScheduleJob(SinaMpTraceCrawlerSchedulerJob.crawlerSchedulejob());

//        delteCrawlerScheduleJob(SinaAutoRealtimeCrawlerSchedulerJob.crawlerSchedulejob());
//        delteCrawlerScheduleJob(SinaAutoTraceCrawlerSchedulerJob.crawlerSchedulejob());

//        delteCrawlerScheduleJob(SinaEstationRealtimeCrawlerSchedulerJob.crawlerSchedulejob());
//        delteCrawlerScheduleJob(SinaEstationTraceCrawlerSchedulerJob.crawlerSchedulejob());
    }
}
